<template>
  <view class="index-container">
    <view>
      欢迎使用 UniApp for Vue3
    </view>
    <view>
      模板由星城前端 NoahLiu 提供
    </view>
  </view>
</template>

<script setup lang="ts">
import { onShow } from '@dcloudio/uni-app';
import { onMounted } from 'vue';


onMounted(() => {
  uni.showLoading({
    title: "加载中",
    mask: true,
  });
});
onShow(() => {
});
</script>

<style lang="scss">
page,
.index-container {
  height: 100%;
  overflow: hidden;
}
.index-container {
  display: flex;
  flex-direction: column;
  .index-top-banner {
    width: 750upx;
    height: 362upx;
    flex: 0 0 auto;
  }
  .menu-list {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    .left {
      width: 206upx;
      border-right: 1px solid #e1e3e7;
      background-color: #f3f4f7;
      .left-item {
        width: 100%;
        height: 110upx;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 16upx;
        font-size: 24upx;
        color: #171930;
        image {
          width: 24upx;
          height: 24upx;
          margin-right: 10upx;
        }
        &.active {
          color: #ffffff;
          background-image: linear-gradient(130deg, #266ed7 0%, #4d8aeb 100%);
        }
      }
    }
    .right {
      flex: 1 1 auto;
      background-color: #f5f5f5;
      overflow: hidden;
      overflow-y: auto;
      .right-item {
        width: 100%;
        height: 110upx;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 16upx;
        font-size: 24upx;
        color: #4a90e2;
        background-color: #ffffff;
        image {
          width: 32upx;
          height: 32upx;
          margin-right: 16upx;
        }
      }
    }
  }
}
</style>
